package com.edu.neusoft.users.service.impl;

import com.edu.neusoft.users.domain.User;
import com.edu.neusoft.users.mapper.UserMapper;
import com.edu.neusoft.users.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService implements IUserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public List<User> selectUserList() {
        return userMapper.selectUserList();
    }


    @Override
    public User getUserByName(String Username) {
        return userMapper.getUserByName(Username);
    }

    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }

    @Override
    public int updateUser(User user) {
        return userMapper.updateUser(user);
    }

    @Override
    public String deleteUser(String Username) {
        return userMapper.deleteUser(Username);
    }
}